package com.pmcc.core.repository;

import com.pmcc.core.entity.security.Dict;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface DictRepository extends JpaRepository<Dict, String> {

    List<Dict> findByCode(String code);

    List<Dict> findByParentIdAndCodeAndDelFlag(String parentId,String code,String delFlag);

    List<Dict> findByParentIdAndDelFlag(String parentId,String delFlag);

}
